package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 楼盘关系表
 **/
@Data
@Entity
@Table(name = "tr_premises_relation")
public class PremisesRelation extends BaseDomain {

    @ApiModelProperty("开发商id")
    @Column(name = "dev_company_id")
    private Long devCompanyId;

    @ApiModelProperty("代理公司id")
    @Column(name = "agent_company_id")
    private Long agentCompanyId;

    @ApiModelProperty("楼盘id")
    @Column(name = "premises_id")
    private Long premisesId;

    @ApiModelProperty("是否删除 0:否、1: 是")
    @Column(name = "del_flag")
    private String delFlag;

    @ApiModelProperty("是否有效(1-有效，0-无效)")
    @Column(name = "status")
    private String status;
}
